﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="TCS.Web.Admin.MemberManage.index" %>
<%@ Register Src="~/Admin/uc/AdminMapPath.ascx" TagName="MapPath" TagPrefix="uc1" %>
<%@ Register Src="../../Controls/checkright.ascx" TagName="checkright" TagPrefix="uc1" %>
<%@ Register TagPrefix="cc1" Namespace="LtpPageControl" Assembly="LtpPageControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>列表</title>

    <script type="text/javascript" language="JavaScript" src="../../js/CheckBox.js"></script>

    <link href="../Style.css" type="text/css" rel="stylesheet">
</head>
<body>
    <form id="Form1" runat="server">
    <div>
        <center>
        <uc1:MapPath ID="MapPath1" ParentName="会员管理" ThisName="列表"  runat="server"></uc1:MapPath>
            <table cellspacing="0" cellpadding="5" width="95%" align="center" border="0">
                <tr>
                    <td valign="middle" height="25">
                        &nbsp;&nbsp;&nbsp; 快速查询：
                        <asp:TextBox ID="txtKey" runat="server" Text="请输入关键字" ToolTip="关键字"></asp:TextBox>&nbsp;
                        <asp:DropDownList ID="DropField" runat="server" Width="150px">
                            <asp:ListItem Value="CodeName">登陆名</asp:ListItem>
                            <asp:ListItem Value="EnName">企业名称</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="dropArea" runat="server">
                        </asp:DropDownList>
                        <asp:ImageButton ID="btn_Search" runat="server" ToolTip="快速检索" ImageUrl="../images/button_search.GIF"
                            OnClick="btn_Search_Click"></asp:ImageButton>
                    </td>
                </tr>
            </table>
            <cc1:Page01 ID="Page011" runat="server" Page_Index="index.aspx" Page_Add="add.aspx"
                Page_Makesql="AllList.aspx"></cc1:Page01>
            <table cellspacing="0" cellpadding="5" width="98%" align="center" border="0">
                <tr>
                    <td bgcolor='<%=Application[Session["Style"].ToString()+"xtable_bgcolor"]%>'>
                        <asp:DataGrid ID="grid" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            Width="100%" DataKeyField="MemberID" OnItemDataBound="grid_ItemDataBound" SkinID="datagridSkin"
                            CellPadding="10" BorderWidth="1px" HeaderStyle-Font-Bold="true" AllowSorting="True"
                            OnSortCommand="grid_SortCommand">
                            <Columns>
                                <asp:TemplateColumn HeaderText="选择">
                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="30px"></HeaderStyle>
                                    <ItemStyle Wrap="False"></ItemStyle>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="SelectThis" onclick="javascript:CCA(this);" runat="server"></asp:CheckBox>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:BoundColumn DataField="MemberID" ReadOnly="True" Visible="false" HeaderText="编号" HeaderStyle-Width="30px">
                                    <HeaderStyle Width="30px"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="序号">
                                     <ItemTemplate>
                                        <%#GetNum(Container.ItemIndex.ToString()) %>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:HyperLinkColumn DataNavigateUrlField="MemberID" DataNavigateUrlFormatString="#?id={0}"
                                    DataTextField="CodeName" HeaderText="用户名">
                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                        Font-Underline="False" HorizontalAlign="Left" />
                                </asp:HyperLinkColumn>
                                <asp:BoundColumn DataField="EnName" ReadOnly="True" HeaderText="企业名称">
                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="200px"></HeaderStyle>
                                    <ItemStyle Wrap="False" CssClass="tdleft" Width="200px"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="IsDelete" SortExpression="IsDelete desc" HeaderText="状态">
                                    <HeaderStyle Wrap="False" Width="28px"></HeaderStyle>
                                    <ItemStyle Wrap="False"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="AddID" HeaderText="所属行政区">
                                    <HeaderStyle Wrap="False" ></HeaderStyle>
                                    <ItemStyle Wrap="False"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="AddTime" HeaderText="添加时间" Visible="false">
                                    <HeaderStyle Wrap="False" Width="110px"></HeaderStyle>
                                    <ItemStyle Wrap="False"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="操作">
                                    <ItemTemplate>
                                        <a href="show.aspx?id=<%#Eval("MemberID")%>">查看详情</a>
                                        &nbsp;&nbsp;&nbsp;
                                        <a href="Modify.aspx?id=<%#Eval("MemberID")%>">修改</a>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                            </Columns>
                            <PagerStyle Visible="False"></PagerStyle>
                            <HeaderStyle Font-Bold="True"></HeaderStyle>
                        </asp:DataGrid>
                    </td>
                </tr>
            </table>
            <cc1:Page02 ID="Page021" runat="server" Page_Index="index.aspx"></cc1:Page02>
            <table cellpadding="0" width="700" border="0" bgcolor='<%=Application[Session["Style"].ToString()+"xtable_bgcolor"]%>'>
                <tr>
                    <td width="80" height="25">
                        <input onclick="CA();" type="checkbox" name="allbox">全选
                    </td>
                    <td align="left">
                        <asp:Button ID="btn_Relese" runat="server" ToolTip="激活" Text=" 激 活 " BorderStyle="Groove"
                            BackColor="Transparent" BorderColor="RoyalBlue" Height="20px" BorderWidth="1px"
                            OnClick="btn_Relese_Click"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btn_NoRelease" runat="server" ToolTip="注销" Text=" 注 消 " BorderStyle="Groove"
                            BackColor="Transparent" BorderColor="RoyalBlue" Height="20px" BorderWidth="1px"
                            OnClick="btn_NoRelease_Click"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Confirm" runat="server" ToolTip="删除相应的新闻" Visible="false" Text=" 删 除 "
                            BorderStyle="Groove" BackColor="Transparent" BorderColor="RoyalBlue" Height="20px"
                            BorderWidth="1px" OnClick="Confirm_Click"></asp:Button>
                    </td>
                </tr>
            </table>
        </center>
    </div>
    <uc1:checkright ID="Checkright1" runat="server"></uc1:checkright>
    </form>
</body>
</html>
